xref: /haiku/docs/develop/kits/print/Spool File Format.txt (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1Spool File Format
2
3See
4http://philippe.houdoin.free.fr/phil/beos/pdf_writer/spool_file_format_for_R4.png
5
6Filename: Description@8DigitNumber
7
8Location: /boot/home/config/settings/printers/PRINTER/
9
10File Contents
11
12struct print_file_header {
13       int32   version; // LSB first; minor: version & 0xffff; major: version >> 16
14       int32   page_count;
15       off_t   first_page;
16       int32   _reserved_3_;
17       int32   _reserved_4_;
18       int32   _reserved_5_;
19};
20
21Flattened BMessage JobMessage {
22	float xresh, yresh, scaling?
23	BRect paper_rect
24	BRect printable_rect
25	int32 orientation
26}
27
28page_count times {
29	uint32 pictureCount;
30	pictureCount times {
31		off_t offset_to_next_picture;
32		byte reserved[40];
33		BPoint point;
34		BRect rect;
35		Flattended BPicture;
36	}
37}
38
39Attributes
40
41MIMS BEOS:TYPE
42	application/x-vnd.Be.printer-spool
43LONG _spool/Page Count
44	2
45TEXT _spool/Description
46	Bookmarks.gbe
47TEXT _spool/Printer
48	PDF
49CSTR _spool/Status
50"Processing", set by print_server while printing.
51"Waiting", set by BPrintJob when it's fully written.
52"Error", set by print_server if driver failed.
53TEXT _spool/MimeType
54	application/x-vnd.gobe.productive55